#ifndef wu_SHAPEMOVIE_H
#define wu_SHAPEMOVIE_H

#pragma once
#include "ofMain.h"
#include "ofxOpenCv.h"
#include "wuImagePlus.h"

class wuShapeMovie
{
    public:
        wuShapeMovie();
        ~wuShapeMovie();

		void setup(string _filename, int _vh, int _vw);
		void update();
		void draw(bool bDrawLines=false, int offX=0);
		void setPosition(ofPoint _pos);
		ofPoint getPosition();
//		void drag(int _x,int _y);
//		void dragOff();
//		void previsualize();
//		void show();
        void setMask(ofxCvGrayscaleImage * grayImg);
		void play();
		void clear();
		void setLoopState(bool _loop);
        bool isAlive();
        void setScrollOffset(int _scroll);

		ofVideoPlayer	movie;
		wuImagePlus skin;
		ofxCvGrayscaleImage * grayImg;
		ofPoint posSkin;
		bool bIsAlive, bLoop;
		int vw, vh;
		int scrollOffset;
};
#endif

